<?php

namespace Biz\Resources\User;

use Lumen\Http\Resources\Json\Resource;

/**
 * UserClientResource.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class UserClientResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function toArray($request)
    {
        return [
            'uid'         => $this->uid,
            'contact'     => $this->contact,
            'institution' => $this->institution,
            'address'     => $this->address,
            'created_at'  => $this->created_at->getTimestamp(),
        ];
    }
}
